package com.wind.taobao.api.trade.product.rest
{
	import com.wind.taobao.api.IPrivateAPI;
	import com.wind.taobao.core.exception.InvalidRequestParametersException;
	import com.wind.taobao.core.util.TaobaoUtils;
	import com.wind.taobao.core.webservice.TaobaoRequest;

	/**
	 * taobao.product.propimg.delete Request
	 * @author fxy
	 *
	 */
	public class ProductPropImgDeleteRequest extends TaobaoRequest implements IPrivateAPI
	{
		public override function get method():String
		{
			return "taobao.product.propimg.delete"
		}
		/**
		 * Y 	 非主图ID
		 */
		[Bindable]
		public var pic_id:String;
		/**
		 * Y 	产品ID.Product的id,通过taobao.product.add接口新增产品的时候会返回id.
		 */
		[Bindable]
		public var product_id:String;

		public override function validate():void
		{
			if (!TaobaoUtils.hasAllValue([pic_id, product_id]))
			{
				throw new InvalidRequestParametersException("请求参数[pic_id,product_id]不能为空");
			}
		}

	}
}